package user.personal.dao;

import java.util.List;

import org.mybatis.spring.support.SqlSessionDaoSupport;
import org.springframework.stereotype.Component;

import com.student.domain.StudentCommand;

import user.personal.domain.PersonalCommand;

@Component
public class PersonalDaoImpl extends SqlSessionDaoSupport implements PersonalDao{

	
	@Override
	public PersonalCommand getPersonalInfo(String hakbun) {
		PersonalCommand personalCommand = getSqlSession().selectOne("getPersonalInfo",hakbun);
		return personalCommand;
	}

	@Override
	public void updatePersonal(PersonalCommand member) {
		getSqlSession().update("updatepersonal",member);
	}

	@Override
	public PersonalCommand getMember(String id) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public List<PersonalCommand> getMemberList(String hakbun) {
		List<PersonalCommand> list = getSqlSession().selectList("getPersonalList",hakbun);
		return list;
	}

	@Override
	public void insertPersonal(PersonalCommand personalCommand) {
		getSqlSession().insert("insertPersonal",personalCommand);
		
	}

	}
